// import { asyncRouterMap } from '@/router'
const state = {
  isOpenMuen: false,
  localPath: sessionStorage.getItem('localPath') ? JSON.parse(sessionStorage.getItem('localPath')) : []
}
const getters = {
  gettersisOpenMuen(state) {
    return state.isOpenMuen
  },
  getterslocalPath(state) {
    return state.localPath
  }
}
const mutations = {
  isOpenMuenMutations(state, params) {
    state.isOpenMuen = params
    localStorage.setItem('isOpenMuen', JSON.stringify(state.isOpenMuen))
  },
  localPathMutations(state, params) {
    state.localPath = params
    sessionStorage.setItem('localPath', JSON.stringify(state.localPath))
  }
}
const actions = {
  isOpenMuenAction({ commit }, params) {
    commit('isOpenMuenMutations', params)
  },
  localPathAction({ commit }, params) {
    commit('localPathMutations', params)
  }
}
export default {
  state,
  getters,
  mutations,
  actions
}
